package com.heima.utils.thread;

import com.heima.model.admin.pojos.AdUser;
import com.heima.model.wemedia.pojos.WmUser;

public class AdThreadLocalUtil {
    public static ThreadLocal<AdUser> threadLocal = new ThreadLocal<>();

    public static void setUser(AdUser adUser){
        threadLocal.set(adUser);
    }

    public static AdUser getUser(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }
}
